import { ApiProperty } from '@nestjs/swagger'

class User {
  @ApiProperty()
  id: number

  @ApiProperty()
  username: string

  @ApiProperty()
  nickName: string

  @ApiProperty()
  email: string

  @ApiProperty()
  phoneNumber: string

  @ApiProperty()
  isFrozen: boolean

  @ApiProperty()
  headPic: string

  @ApiProperty()
  createTime: Date

  @ApiProperty()
  updateTime: Date
}

export class UserListVo {
  @ApiProperty({
    type: [User],
  })
  users: Array<User>

  @ApiProperty()
  totalCount: number
}
